<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        User::truncate();

       User::factory()
           ->count(50)->create();

       User::where('id',1)->update(['username'=>'admin']);

    }
}
